package home.study.xxy.bs.entity;


import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;

// implements UserDetails
public class User implements Serializable{

  private String id;
  private String userName;
  private String pwd;
  private String uNick;
  private String uAdmin;
  private String userInt;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date vipTime;



  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  public String getPwd() {
    return pwd;
  }

  public void setPwd(String pwd) {
    this.pwd = pwd;
  }


  public String getUNick() {
    return uNick;
  }

  public void setUNick(String uNick) {
    this.uNick = uNick;
  }


  public String getUAdmin() {
    return uAdmin;
  }

  public void setUAdmin(String uAdmin) {
    this.uAdmin = uAdmin;
  }


  public String getUserInt() {
    return userInt;
  }

  public void setUserInt(String userInt) {
    this.userInt = userInt;
  }


  public Date getVipTime() {
    return vipTime;
  }

  public void setVipTime(Date vipTime) {
    this.vipTime = vipTime;
  }

  @Override
  public String toString() {
    return "User{" +
            "id='" + id + '\'' +
            ", userName='" + userName + '\'' +
            ", pwd='" + pwd + '\'' +
            ", uNick='" + uNick + '\'' +
            ", uAdmin='" + uAdmin + '\'' +
            ", userInt='" + userInt + '\'' +
            ", vipTime=" + vipTime +
            '}';
  }
}
